package com.woniuxy.service.impl;

import com.woniuxy.entity.Role;
import com.woniuxy.mapper.RoleMapper;
import com.woniuxy.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public Role findByUid(int uid) {
        return roleMapper.findByUid(uid);
    }
}
